#!/bin/bash
#========================================================================
# Author: YSLin
# Email: 
# File Name: grep.sh
# Description: 
#   
# Edit History: 
#   2011-01-14    File created.
#========================================================================
#-i忽略大小寫,尋找有關unix的行數
#-n顯示行數
grep -in unix ch16.doc

#list process infomation without the word bash
ps | grep -v bash

#-l顯示檔案名稱而非內容
grep -l bash *
